package bavaria.hightech.banking.unusedClasses;

import java.util.Iterator;
import java.util.Vector;

public class VectorList<T> {

	private Vector<LinkedElement<T>> elementList = new Vector<LinkedElement<T>>();

	public void add(T subElement) {
		elementList.add(new LinkedElement<T>(subElement));
	}

	public void clear() {
		elementList.clear();
	}

	public Iterator<LinkedElement<T>> getIterator() {
		return elementList.iterator();
	}

	public static class LinkedElement<T> {

		private final T myElem;

		private LinkedElement(T subElement) {
			myElem = subElement;
		}

		@Override
		public String toString() {
			return myElem.toString();
		}
	}

}
